package com.invest.amplegest.xml.bean;

import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "aldo_line")
@XmlAccessorType(XmlAccessType.FIELD)
public class AldoLine {

	@XmlElement(name = "aldo_field")
	private List<AldoField> aldoFields = null;


	public AldoLine() { super(); }


	public String getValue(String techName) {
		techName = "FIL_"+techName;
		for(AldoField field : aldoFields) {
			if(field.getTechName().contains(techName))
				return field.getValue();
		}
		return "";
	}


	public List<AldoField> getAldoFields() { return aldoFields; }
	public void setAldoFields(List<AldoField> aldoFields) { this.aldoFields = aldoFields; }

}
